import { http } from '@/utils/http/axios'

// 获取 table
export function getTableList(params: any) {
  return http.request({
    url: '/api/table/list',
    method: 'get',
    params,
  })
}

// 获取 table
export function createTableItem(params: any) {
  return http.request({
    url: '/api/table/item/create',
    method: 'post',
    data: params,
  })
}

// 获取 table
export function editTableItem(params: any) {
  return http.request({
    url: '/api/table/item/edit',
    method: 'patch',
    data: params,
  })
}
